package com.woniuxy;

import java.util.concurrent.ConcurrentHashMap;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO:
 * <P> Date: 2022/4/22:13:31
 * <P> Description:
 */

public class Test {
    static final ConcurrentHashMap<String,Object> concurrentHashMap = new ConcurrentHashMap();
    public static void main(String[] args) {

        concurrentHashMap.putIfAbsent("15","1");



        Object o = concurrentHashMap.computeIfAbsent("15", s -> "2");
        System.out.println(o);


    }
}
